<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>鲜知后台管理系统-购买所选学校列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" id="search-form" method="post" action="{{urlfor "admin.OrderSchoolController.ShowAllList" ":id" .orderId}}">
                        {{.xsrfdata}}
                        <div class="layui-inline layui-show-xs-block">
                            <select id="is_excellent" name="is_excellent" lay-verify="">
                                <option value="">是否优选</option>
                                <option value="1" {{if eq .isExcellent 1}}selected{{end}}>是</option>
                                <option value="0" {{if eq .isExcellent 0}}selected{{end}}>否</option>
                            </select>
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <select id="is_assist" name="is_assist" lay-verify="">
                                <option value="">是否辅选</option>
                                <option value="1" {{if eq .isAssist 1}}selected{{end}}>是</option>
                                <option value="0" {{if eq .isAssist 0}}selected{{end}}>否</option>
                            </select>
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn"  lay-submit="" lay-filter="search"><i class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>
                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>学校名称</th>
                            <th>学校介绍</th>
                            <th>是否优选</th>
                            <th>是否辅选</th>
                        </thead>
                        <tbody>
                        {{range .recordList}}
                            <tr>
                                <td>{{.SchoolName}}</td>
                                <td>{{.SchoolIntroduce}}</td>
                                <td>{{.SchoolIsExcellentShow}}</td>
                                <td>{{.SchoolIsAssistShow}}</td>
                            </tr>
                        {{else}}
                            <tr>
                                <td colspan="100" style="text-align: center;font-weight: bold;color: #ff6666;">没有数据</td>
                            </tr>
                        {{end}}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>

    layui.use(["form"], function () {

        $ = layui.jquery;
        var form = layui.form;

        form.on("submit(search)", function () {
            $("#search-form").submit();
        });

    });

</script>
</html>